Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / repository / src / commonMain / kotlin / org / meshtastic / core / repository / FirmwareReleaseRepository.kt

Displaying Raw • Download

core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/FirmwareReleaseRepository.kt 4f86b91973784e4ec05b9a5c7b2dc396ed4848b8 (4f86b919) Text, 1.80 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository

Tff7b72import T7ee787kotlinx.coroutines.flow.Flow
Tff7b72import T7ee787org.meshtastic.core.database.entity.FirmwareRelease

Tff7b72interface T56d364FirmwareReleaseRepository Tb4b4b4{
T8b949e/** A flow that provides the latest STABLE firmware release. */
Tff7b72val Te6edf3stableReleaseTb4b4b4: Te6edf3FlowTff7b72<Te6edf3FirmwareRelease?Tff7b72>

T8b949e/** A flow that provides the latest ALPHA firmware release. */
Tff7b72val Te6edf3alphaReleaseTb4b4b4: Te6edf3FlowTff7b72<Te6edf3FirmwareRelease?Tff7b72>

T8b949e/**
* A flow that provides the current NIGHTLY preview build, or null when none is published. Sourced from
* meshtastic.github.io rather than the API server, and surfaced only behind the hidden-features unlock.
*/
Tff7b72val Te6edf3nightlyReleaseTb4b4b4: Te6edf3FlowTff7b72<Te6edf3FirmwareRelease?Tff7b72>

T8b949e/**
* Fetches the authoritative firmware board targets from a release's manifest URL. Returns null when the manifest
* cannot be retrieved or parsed, so callers can fail closed rather than offering an incompatible firmware update.
*/
Tff7b72suspend Tff7b72fun Td2a8ffgetManifestTargetsTb4b4b4(Te6edf3releaseTb4b4b4: Te6edf3FirmwareReleaseTb4b4b4)Tb4b4b4: Te6edf3SetTff7b72<Tffa657StringTff7b72>Tff7b72?

T8b949e/** Invalidates the local cache of firmware releases. */
Tff7b72suspend Tff7b72fun Td2a8ffinvalidateCacheTb4b4b4(Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s